<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
    <!-- 1. 创建容器 -->
    <div id="app">
        <!-- 4. 渲染 -->
        {{message}}
    </div>
    <!-- <div id="root">
        
        {{msg}}
    </div> -->
    <script>
        // 2. 创建 Vue app
        Vue.createApp({
            setup() {
                let msg = 'hello world'
                return {
                    // 返回值
                    message : msg
                }
            }
        }).mount("#app") // 调用
    </script>
</body>

</html>